﻿using System;
using UnityEngine;

namespace ParticlePlayground
{
	// Token: 0x02000196 RID: 406
	public static class AnimationCurveExtensions
	{
		// Token: 0x060008BE RID: 2238 RVA: 0x000342A4 File Offset: 0x000324A4
		public static void Reset(this AnimationCurve animationCurve)
		{
			if (animationCurve == null)
			{
				animationCurve = new AnimationCurve();
			}
			Keyframe[] array = new Keyframe[2];
			array[1].time = 1f;
			animationCurve.keys = array;
		}

		// Token: 0x060008BF RID: 2239 RVA: 0x000342E0 File Offset: 0x000324E0
		public static void Reset1(this AnimationCurve animationCurve)
		{
			if (animationCurve == null)
			{
				animationCurve = new AnimationCurve();
			}
			Keyframe[] array = new Keyframe[2];
			array[1].time = 1f;
			array[0].value = 1f;
			array[1].value = 1f;
			animationCurve.keys = array;
		}

		// Token: 0x060008C0 RID: 2240 RVA: 0x0003433C File Offset: 0x0003253C
		public static void Reset01(this AnimationCurve animationCurve)
		{
			if (animationCurve == null)
			{
				animationCurve = new AnimationCurve();
			}
			Keyframe[] array = new Keyframe[2];
			array[1].time = 1f;
			array[0].value = 0f;
			array[1].value = 1f;
			animationCurve.keys = array;
		}
	}
}
